﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AFCEPF.Samples.WebSamples.Controls
{
    public partial class View_RadioButtonList1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (! IsPostBack)
            {
                RadioButtonList1.DataSource = BindingProvider.GetListOfStrings();   
                RadioButtonList1.DataBind();
            }

        }

        protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Label1.Text = "You chose : " + RadioButtonList1.SelectedItem.Text;
        }
    }
}